package com.example.service.Impl;

import com.example.Domain.Card;
import com.example.Domain.Vodeo;
import com.example.Mapper.CardMapper;
import com.example.service.CardService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class CardServiceImol implements CardService {
    @Autowired
    private CardMapper cardMapper;

    @Override
    public List<Card> cardall(Integer pageNum,Integer pageSize) {
        return cardMapper.cardall();
    }

    @Override
    public List<Card> cardecho(Integer id) {
        return cardMapper.cardecho(id);
    }

    @Override
    public boolean cardinsert(Card card) {
        return cardMapper.cardinsert(card);
    }
}
